cmake_minimum_required(VERSION 3.0)
set(TargetName OCQuant)
project(${TargetName})
ADD_SUBDIRECTORY(Common)
ADD_SUBDIRECTORY(DB)
ADD_SUBDIRECTORY(CTP)
ADD_SUBDIRECTORY(Net)
ADD_SUBDIRECTORY(3rd)
ADD_SUBDIRECTORY(Log)
ADD_SUBDIRECTORY(Example)
ADD_SUBDIRECTORY(AMQP)
#ADD_SUBDIRECTORY(ServerFrame)



#分组
SET_PROPERTY(GLOBAL PROPERTY USE_FOLDERS ON)
#Common
SET_PROPERTY(TARGET FAAlgorithm PROPERTY FOLDER "Common")
SET_PROPERTY(TARGET FABarMaker PROPERTY FOLDER "Common")
SET_PROPERTY(TARGET FABase PROPERTY FOLDER "Common")
SET_PROPERTY(TARGET FAJson PROPERTY FOLDER "Common")
#SET_PROPERTY(TARGET FAPack PROPERTY FOLDER "Common")
SET_PROPERTY(TARGET FAPrint PROPERTY FOLDER "Common")
SET_PROPERTY(TARGET FATinyxml PROPERTY FOLDER "Common")
SET_PROPERTY(TARGET FAZip PROPERTY FOLDER "Common")

#DB
#SET_PROPERTY(TARGET FACSV2DB PROPERTY FOLDER "DB")
#SET_PROPERTY(TARGET FAMysql PROPERTY FOLDER "DB")
SET_PROPERTY(TARGET FARedis PROPERTY FOLDER "DB")
SET_PROPERTY(TARGET FASqlite PROPERTY FOLDER "DB")
SET_PROPERTY(TARGET FASqliteFormate PROPERTY FOLDER "DB")

#CTP
SET_PROPERTY(TARGET FACore PROPERTY FOLDER "CTP")
SET_PROPERTY(TARGET FAFlow PROPERTY FOLDER "CTP")
#SET_PROPERTY(TARGET FALimitOrderBook PROPERTY FOLDER "CTP")
SET_PROPERTY(TARGET FAMarket PROPERTY FOLDER "CTP")
SET_PROPERTY(TARGET FAOrderMonitor PROPERTY FOLDER "CTP")
#SET_PROPERTY(TARGET FAPython PROPERTY FOLDER "CTP")
SET_PROPERTY(TARGET FAQuote PROPERTY FOLDER "CTP")
SET_PROPERTY(TARGET FAStrategyCore PROPERTY FOLDER "CTP")
SET_PROPERTY(TARGET FAStrategyPlatform PROPERTY FOLDER "CTP")
SET_PROPERTY(TARGET FATrade PROPERTY FOLDER "CTP")

#Net
#SET_PROPERTY(TARGET FANet PROPERTY FOLDER "Net")
#SET_PROPERTY(TARGET FANetAsio PROPERTY FOLDER "Net")
SET_PROPERTY(TARGET FASockClient PROPERTY FOLDER "Net")
SET_PROPERTY(TARGET FASockServer PROPERTY FOLDER "Net")

#3rd 
SET_PROPERTY(TARGET log4cplus PROPERTY FOLDER "3rd")
SET_PROPERTY(TARGET libuv PROPERTY FOLDER "3rd")

#AMQP 
SET_PROPERTY(TARGET MQClient PROPERTY FOLDER "AMQP")
SET_PROPERTY(TARGET MQClientTiny PROPERTY FOLDER "AMQP")

#Log
#SET_PROPERTY(TARGET FALog PROPERTY FOLDER "Log")
SET_PROPERTY(TARGET FALog4cplus PROPERTY FOLDER "Log")

#ServerFrame
#SET_PROPERTY(TARGET QuoteSvr PROPERTY FOLDER "ServerFrame")
#SET_PROPERTY(TARGET KBarSvr PROPERTY FOLDER "ServerFrame")
#SET_PROPERTY(TARGET TradeSvr PROPERTY FOLDER "ServerFrame")
#SET_PROPERTY(TARGET StrategyPlus1 PROPERTY FOLDER "ServerFrame")

#Example
SET_PROPERTY(TARGET DemoArbitrageA PROPERTY FOLDER "Example")
SET_PROPERTY(TARGET DemoDBClient PROPERTY FOLDER "Example")
#SET_PROPERTY(TARGET DemoNet PROPERTY FOLDER "Example")
SET_PROPERTY(TARGET DemoStrategyPlusA PROPERTY FOLDER "Example")
#SET_PROPERTY(TARGET DemoPythonQuote2CTP PROPERTY FOLDER "Example")
SET_PROPERTY(TARGET DemoTushare PROPERTY FOLDER "Example")
SET_PROPERTY(TARGET StrategyArbitrageA PROPERTY FOLDER "Example")
SET_PROPERTY(TARGET StrategyPlusA PROPERTY FOLDER "Example")
#SET_PROPERTY(TARGET StrategyPlusB PROPERTY FOLDER "Example")

